<template>
<div class="dy-main EAccountEnter">
  <div class="dy-header">
    <x-header :right-options="{showMore: false}" :left-options="{preventGoBack: true,backText: ''}" @on-click-back="back" @on-click-more="showMenus = true">E账户</x-header>
  </div>
  <div class="dy-body">
    <group>
      <cell :title="secondAccount" @click.native="toSecondAc" is-link></cell>
      <cell :title="thridAccount" @click.native="toThridAc" is-link></cell>
      <cell :title="AccountSearch" @click.native="toAcSreach" is-link></cell>
      <!-- <cell :title="Rechange" @click.native="toRechange" is-link></cell> -->
      <cell :title="EAccountDtail" @click.native="toEAccountDtail" is-link></cell>
      <cell :title="EAccountChangePassword" @click.native="toEAccountChangePassword" is-link></cell>
    </group>
  </div>
</div>
</template>

<script>
export default{
  data () {
    return {
      ActType: '', // 选择账户类型
      secondAccount: '开通Ⅱ类账户',
      thridAccount: '开通Ⅲ类账户',
      AccountSearch: 'Ⅱ/Ⅲ类账户查询',
      Rechange: 'E账户转入转出',
      EAccountDtail: 'E账户详情（绑定/解绑）',
      EAccountChangePassword: 'E账户密码修改'
    }
  },
  computed: {
    getEAccountInfoType () {
      return this.$store.getters.getEAccountInfoType
    }
  },
  methods: {
    toEAccountChangePassword () {
      this.$router.push({name: 'EAccountChangePassword'})
    },
    toSecondAc: function () {
      this.$store.commit('changeType', '二类户')
      this.$router.push({name: 'EAccountApprove'})
    },
    toThridAc: function () {
      this.$store.commit('changeType', '三类户')
      this.$router.push({name: 'EAccountApprove'})
    },
    toAcSreach: function () {
      this.$router.push({name: 'EAccountOpenQuery'})
    },
    toRechange: function () {
      this.$router.push({name: 'EAccountRechange'})
    },
    toEAccountDtail () {
      this.$router.push({name: 'EAccountDtail'})
    },
    back () {
      this.$publicFun.goBack(this)
    }
  }
}
</script>

<style lang="less">
</style>
